package com.home.dao;

import java.util.List;

import org.mybatis.spring.annotation.MapperScan;

import com.home.entity.Product;
@MapperScan  
public interface ProductMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Product record);

    int insertSelective(Product record);

    Product selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Product record);

    int updateByPrimaryKey(Product record);
    
    public List<Product> getAllProducts();
    
    public Product getProductByProductId(Integer productId);
}